package cn.jbit;

import cn.jbit.generatedbdata.config.RestConfig;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 张在成
 */
@SpringBootApplication
@Data
@RestController
@EnableDiscoveryClient
public class UserserviceApplication{

//    @NacosInjected
//    private NamingService namingService;

    @Value("${server.port}")
    private  Integer port;

    @Value("${spring.application.name}")
    private  String  applicationName;

    public static void main(String[] args) {
        SpringApplication.run(UserserviceApplication.class, args);
    }

    /*@Override
    public void run(String... args) throws Exception {
        namingService.registerInstance(applicationName,"192.168.43.66",port);
    }*/
}
